package com.uls.ycl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 检修维护对象 ycl_inspection_maintenance
 * 
 * @author ycl
 * @date 2024-11-23
 */
public class InspectionMaintenance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Long id;

    /** 类型（0-日常巡检、1-预防性维护） */
    @Excel(name = "类型", readConverterExp = "0=-日常巡检、1-预防性维护")
    private String type;

    /** 内容 */
    @Excel(name = "内容")
    private String content;

    /** 结果（仅记录使用） */
    @Excel(name = "结果", readConverterExp = "仅=记录使用")
    private String result;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createdBy;

    /** 执行人（仅记录使用） */
    @Excel(name = "执行人", readConverterExp = "仅=记录使用")
    private String executedBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date createdAt;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm")
    private Date updatedAt;

    /** 区域ID */
    @Excel(name = "区域ID")
    private Long areaId;

    ///
        /** 区域名称 */
    @Excel(name = "区域名称")
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public void setContent(String content)
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }
    public void setResult(String result) 
    {
        this.result = result;
    }

    public String getResult() 
    {
        return result;
    }
    public void setCreatedBy(String createdBy) 
    {
        this.createdBy = createdBy;
    }

    public String getCreatedBy() 
    {
        return createdBy;
    }
    public void setExecutedBy(String executedBy) 
    {
        this.executedBy = executedBy;
    }

    public String getExecutedBy() 
    {
        return executedBy;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }
    public void setAreaId(Long areaId) 
    {
        this.areaId = areaId;
    }

    public Long getAreaId() 
    {
        return areaId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("content", getContent())
            .append("result", getResult())
            .append("createdBy", getCreatedBy())
            .append("executedBy", getExecutedBy())
            .append("createdAt", getCreatedAt())
            .append("updatedAt", getUpdatedAt())
            .append("areaId", getAreaId())
            .toString();
    }
}
